翻訳と辞書 |
friend class : ウィキペディア英語版 | friend class A friend class in C++ can access the "private" and "protected" members of the class in which it is declared as a friend.〔http://www.desy.de/gna/html/cc/Tutorial/node10.htm#SECTION001050000000000000000〕 ==Rationale== Friendship may allow a class to be better encapsulated by granting per-class access to parts of its API that would otherwise have to be public.〔http://www.parashift.com/c++-faq/friends-and-encap.html〕 This increased encapsulation comes at the cost of tighter coupling between classes.〔http://www.artima.com/cppsource/codestandards3.html〕
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「friend class」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|